<?php

namespace App\Http\Requests\Admin\AdminRole;

use App\Http\Requests\Request;

class AdminRoleRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 验证规则
     *
     * @return array
     */
    public function rules()
    {
        return [
            'role_name' => 'required'
        ];
    }

    /**
     * 验证信息
     * @return array
     */

    public function messages()
    {
        return [
            'role_name.required' => '请填写角色名称',

        ];
    }
}
